<?php
include_once "PDO.class.php";
$mysql = new Db();
$id=$_GET['id'];
$query = $mysql->del($id);
if($query){
    header("location:list.php");
}else{
    header("location:list.php");
}
?>